<%@ page import="com.gopay.cashier.web.utils.HexStringByte" %>
<%@ page import="com.gopay.cashier.web.utils.DigestUtil" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SUCCESS</title>
</head>
<body>
<h3>welcome</h3>
<br>
<%=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date())%>
<%
    String orderId = request.getParameter("orderId");
    if(orderId != null){
    String orderKey = HexStringByte.byteToHex(DigestUtil.getDigestData(orderId.getBytes(), DigestUtil.SHA1));
%>
<form id="confirmForm" name="confirmForm" method="get" action="<%=request.getContextPath()%>/pay/order.shtml?orderKey=<%=orderKey%>&orderId=<%=orderId%>"  target="_blank">
<input type="text" id="orderId" name="orderId"  value="<%=orderId%>" maxlength="100"/>
<input type="text" id="orderKey" name="orderKey" value="<%=orderKey%>" maxlength="100"/>
    <button type="submit"  >----支付----</button>
</form>
<%}%>
</body>
</html>